﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void btnReadFile_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Multiselect = true;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                string[] files = ofd.FileNames;
                ucFoLsv1.SetDataSource(files);
                //ucFastObjectListView1.FileNames = files.ToList();
                //ucLsv.SetDataSource(files);
            }
        }

        private void chkGroup_CheckedChanged(object sender, EventArgs e)
        {
            if (chkGroup.Checked == true)
            {
                ucFoLsv1.FastOLSV.ShowGroups = true;
                ucFoLsv1.FastOLSV.BuildGroups();
            }
            else
            {
                ucFoLsv1.FastOLSV.ShowGroups =false;
                //ucFoLsv1.FastOLSV.BuildGroups();
                //ucFoLsv1.FastOLSV.Refresh();
            }


        }
    }
}
